import {Sequelize} from "sequelize";
import sequelize from "./initSequelize.js";

import initModels from "./init-models.js";
import manager from "./manager.js";
import msg_01 from "./msg_01.js";
import msg_02 from "./msg_02.js";
import msg_03 from "./msg_03.js";
import msg_04 from "./msg_04.js";
import msg_05 from "./msg_05.js";
import msg_06 from "./msg_06.js";
import msg_07 from "./msg_07.js";
import msg_08 from "./msg_08.js";
import msg_09 from "./msg_09.js";
import update_msg_history from "./update_msg_history.js";
import update_user_add_msg_history from "./update_user_add_msg_history.js";
import update_user_base_history from "./update_user_base_history.js";
import update_user_friend_group_history from "./update_user_friend_group_history.js";
import update_user_history from "./update_user_history.js";
import user from "./user.js";
import user_add_msg from "./user_add_msg.js";
import user_base from "./user_base.js";
import user_friend_group from "./user_friend_group.js";
import captcha from "./captcha.js";
import group_base_info from './group_base_info.js';
import group_announce from './group_announce.js';
import update_group_announce_history from './update_group_announce_history.js';
import update_group_base_info_history from './update_group_base_info_history.js';
import user_chat_list from "./user_chat_list.js";

const db = {};
db["init-models"] = initModels(sequelize, Sequelize.DataTypes);
db["manager"] = manager(sequelize, Sequelize.DataTypes);
db["msg_01"] = msg_01(sequelize, Sequelize.DataTypes);
db["msg_02"] = msg_02(sequelize, Sequelize.DataTypes);
db["msg_03"] = msg_03(sequelize, Sequelize.DataTypes);
db["msg_04"] = msg_04(sequelize, Sequelize.DataTypes);
db["msg_05"] = msg_05(sequelize, Sequelize.DataTypes);
db["msg_06"] = msg_06(sequelize, Sequelize.DataTypes);
db["msg_07"] = msg_07(sequelize, Sequelize.DataTypes);
db["msg_08"] = msg_08(sequelize, Sequelize.DataTypes);
db["msg_09"] = msg_09(sequelize, Sequelize.DataTypes);
db["update_msg_history"] = update_msg_history(sequelize, Sequelize.DataTypes);
db["update_user_add_msg_history"] = update_user_add_msg_history(sequelize, Sequelize.DataTypes);
db["update_user_base_history"] = update_user_base_history(sequelize, Sequelize.DataTypes);
db["update_user_friend_group_history"] = update_user_friend_group_history(sequelize, Sequelize.DataTypes);
db["update_user_history"] = update_user_history(sequelize, Sequelize.DataTypes);
db["user"] = user(sequelize, Sequelize.DataTypes);
db["user_add_msg"] = user_add_msg(sequelize, Sequelize.DataTypes);
db["user_base"] = user_base(sequelize, Sequelize.DataTypes);
db["user_chat_list"] = user_chat_list(sequelize, Sequelize.DataTypes);
db["user_friend_group"] = user_friend_group(sequelize, Sequelize.DataTypes);
db["captcha"] = captcha(sequelize, Sequelize.DataTypes);
db["group_base_info"] = group_base_info(sequelize, Sequelize.DataTypes);
db["group_announce"] = group_announce(sequelize, Sequelize.DataTypes);
db["update_group_announce_history"] = update_group_announce_history(sequelize, Sequelize.DataTypes);
db["update_group_base_info_history"] = update_group_base_info_history(sequelize, Sequelize.DataTypes);

db.sequelize = sequelize;
db.Sequelize = Sequelize;

export default db;
